import { http } from './http'
export const api = {
    async get(url, params)  { const { data } = await http.get(url, { params }); return data },
    async post(url, body)   { const { data } = await http.post(url, body); return data },
    async put(url, body)    { const { data } = await http.put(url, body); return data },
    async del(url)          { const { data } = await http.delete(url); return data }
}
